package com.lykj.modules.shop.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.lykj.core.tool.node.TreeNode;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品分类Tree
 *
 * @author cxl
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "StoreCategoryTree对象", description = "商品分类Tree")
public class StoreCategoryTree extends TreeNode {
	private static final long serialVersionUID = 1L;
	/**
	 * 主键ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 父节点ID
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long parentId;

	/**
	 * 是否有子孙节点
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private Boolean hasChildren;

	/**
	 * 分类图片
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private String catePic;

	/**
	 * 分类排序
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private Integer sort;

	/**
	 * 分类排序
	 */
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private String remark;

}
